package com.wwdx.service;

import com.wwdx.model.WwdxBookChapterModel;

import java.util.List;

/**
 * @author liguoliang
 */
public interface WwdxBookChapterServiceI extends BaseServiceI<WwdxBookChapterModel> {

    /**
     * 章节列表
     * @param bookid 书籍ID
     * @return 章节列表
     */
    List<WwdxBookChapterModel> findBookChapterList(Long bookid);

    /**
     * 章节对象
     * @param bookid 书籍ID
     * @return 章节对象
     */
    WwdxBookChapterModel getByBookId(Long bookid);

    /**
     * 章节列表
     * @param bookid 书籍ID
     * @param openId 微信用户ID
     * @param merchantId 商户ID
     * @return 章节列表
     */
    List<WwdxBookChapterModel> findBookChapterList(Long bookid, String openId,String merchantId);
}